﻿namespace Chameleon.Storage
{
	using System.Collections.Generic;

	/// <summary>
	/// Provides a context for storage and retrieval of contiguous data.
	/// </summary>
	
	public interface IStorageProvider
	{
		/// <summary>
		/// Returns the collection of containers in the root of the context.
		/// </summary>
		
		IEnumerable<IStorageContainer> Containers();


		/// <summary>
		/// Returns the specified container from the storage context.
		/// </summary>
		/// <param name="path">Name of the container to return.</param>

		IStorageContainer Container( string path );
	}
}
